<%@ page pageEncoding="utf-8"%>
<%@page import="com.frame.common.SystemConfig"%>
<%@page import="com.frame.session.UserSession"%>

<!DOCTYPE html>
<HTML>
  <head>
	<%@ include file="/platform/style.jsp"%>
    <title><%=SystemConfig.getInstance().getTitle() %></title>
	<link href='<%=path %>/platform/UI/default/main.css' rel='stylesheet' type='text/css'>
	<link href='<%=path %>/plugins/font-awesome/css/font-awesome.min.css' rel='stylesheet' type='text/css'>
	<script src="<%=path %>/util/js/combox.js"></script>
	<script src='<%=path %>/util/js/ui.core.js' type='text/javascript'></script>
	<link href='<%=path %>/util/js/dtree/skin/ui.dynatree.css' rel='stylesheet' type='text/css'>
	<script src='<%=path %>/util/js/dtree/jquery.dynatree.js' type='text/javascript'></script>
	<script type="text/javascript" src="<%=path %>/platform/UI/js/index.js"></script>
	<style>
	
	</style>
	<script>
	$(function(){
		gohome();
	})
	
	function gohome(){
		//gopage(ctx+'/platform/UI/default/main.jsp');
		window.location.href=ctx+"/platform/UI/index.jsp#!";
	}
	function gopage(url){
		var miframe=$("#main_frame");
		if(!$.browser.msie){
			try{miframe.contents().find("body").html("<div style='font-size:12px;padding:5px;color:#8CBA51'><img src='"+ctx+"/platform/images/loading.gif' style='vertical-align:middle'>正在加载数据...</div>");}catch(e){}
		}
		miframe.attr("src",url);
	}
	function main_left_click(mid,title){
		var menua=$("#menu"+mid);
		$("a",$(".left_menu")).each(function(){
			$(this).removeClass("subcur");
		})
		if(menua.parent().hasClass("topli")){
			$(".topli",$(".left_menu")).removeClass("open").removeClass("close").addClass("close");
			menua.parent().removeClass("close");
			menua.parent().addClass("open");
		}else
			menua.addClass("subcur");
		if(menua.next().length>0){
			$("ul",$(".left_menu")).each(function(){
				$(this).hide();
			})
			menua.next().show();
		}else{
			window.location.href=ctx+"/platform/UI/index.jsp#!menu_"+mid
		}
	}
	
	function openhelp(){
		
	}
	</script>
  </head>
  <body class="easyui-layout" data-options="fit:true" id="ui_main_center">
	  <div data-options="region:'north',split:false,border:false" style="height:48px;overflow:hidden;" class="main_topbg">
	  	<!-- 头部 -->
	 		<table width="100%" cellpadding="0" cellspacing="0">
	 		<tr>
	 		<td width="270" style="padding-top:0px;padding-left:5px;"><img src="<%=path %>/platform/images/logo.png" width="350"/></td>
	 		<td valign="top">&nbsp;
	 			<!-- 公告栏 -->
	 			
	 		</td>
	 		<td align="right" valign="top" width="320">
	 			<div style="margin-top:10px">
	 			<table cellpadding="0" cellspacing="0">
				<tr>
				<td onclick=""><a href="javascript:;" class="easyui-menubutton" plain="true" data-options="menu:'#indexusermm',iconUrl:'<%=path %>/platform/UI/default/images/icon_user.gif'" title="<%=sessionUser.getUserName() %>"><%int l=sessionUser.getUserName().length();if(l>6)out.print(sessionUser.getUserName().substring(0,6)+"..");else out.print(sessionUser.getUserName()); %></a></td>
				<td width="5" align="center" style="color:#ffffff"></td>
				<td ><a href="javascript:;" onclick="openhelp()" class="easyui-linkbutton" plain="true" data-options="iconUrl:'<%=path %>/platform/UI/default/images/help.png'" title="帮助">帮助</a></td>
				<td width="5" align="center" style="color:#ffffff"></td>
				<td valign="top"><a href="javascript:;" class="easyui-linkbutton" iconCls="icon_exit" plain="true" title="退出系统" onclick="_login_out()" style="color:#004080;">退出</a></td>
				<td width="8"></td>
				</tr>
				</table>
				</div>
				<div id="indexusermm"><div onclick="window.parent.changeMyPwd()" data-options="iconCls:'pwd_edit'">修改密码</div></div>
			</td>
	 		</tr>
	 		</table>
	 		<!-- 头部结束 -->
	  </div>
	  <div data-options="region:'west',split:true,border:false" style="width:215px" id="main_menus">
	  	<!-- 左侧 -->
	  	<div class="easyui-layout" data-options="fit:true">
	  		<div data-options="region:'north',split:false,border:false" style="height:57px;background:#293D48">
	  			<div onclick="gohome()" style="background:url(<%=path %>/platform/UI/default/images/icon9.png) no-repeat 18px center;height:55px;line-height:55px;text-indent:55px;font-size:18px;color:#A7C97F;font-weight:bold;border-bottom:1px solid #E8EBEC;cursor:pointer">主页</div>
	  		</div>
		  	<div data-options="region:'center',split:false,border:false,href:'<%=path %>/platform/UI/default/left.jsp'" style="background:#293D48">
			  	
		  	</div>
		  	
		 </div>
		 <!-- 左侧结束 -->
	  </div>
	  <div data-options="region:'center',split:false,border:false">
	  	<!-- 右侧 -->
	  	<div class="easyui-layout" data-options="fit:true" id="ui_main_tab_frame">
	  		<div data-options="region:'north',split:false,border:false" style="height:44px;background:#F3F3F4;overflow:hidden">
	  			<div style="background:url(<%=path %>/platform/UI/default/images/icon8.png) no-repeat 8px 12px;height:38px;line-height:38px;border-bottom:1px solid #2F4050" id="home_nav"><a href='javascript:;'>主页</a></div>
	  		</div>
		  	<div data-options="region:'center',split:false,border:false" style="overflow:hidden">
			  	<iframe name="main_frame" id="main_frame" src="" width="100%" height="100%" frameborder="0" scrolling="auto" style="background-color:#F3F3F4;"></iframe>
		  	</div>
	  	</div>
	  	<!-- 右侧结束 -->
	  </div>
  </body>
</html>